<?php

/**
 * Created by Vincent ZHANG.
 * Date: 2018-04-16 0016
 * Time: 16:56
 * Description:
 */
class My_order extends CI_Model
{

    public function insert_entry($order_id) {
//        print_r($order_id);exit;
//        $this->order_id = $order_id;//$_POST['title']; // please read the below note
        $this->db->set(['order_id'=>$order_id]);
        $this->db->insert('my_order');
        return $this->db->insert_id();
    }
}